package demo5;

import demo4.Animal;

class Bird extends Animal {

    public Bird(String name, int age) {
        super(name, age);
    }

    public void test() {
        System.out.println(this.age);
        System.out.println(this.name);
    }
}




public class TestDemo {
    public static void main(String[] args) {

    }
}
